package com.geezdata.cps.sdk3rd.kaola.request;

import java.util.HashMap;
import java.util.Map;

import org.hibernate.validator.constraints.NotBlank;

import com.geezdata.cps.sdk3rd.kaola.constant.Constants;
import com.geezdata.cps.sdk3rd.kaola.response.KaolaOrderGetResult;

/**
 * 考拉接口：kaola.order.get<br>
 * 获取指定订单的信息<br>
 * &nbsp;<br>
 * 应用基本输入参数：<br>
 * <li>order_id：必须，订单号
 * &nbsp;<br>
 * @author jxshen
 *
 */

public class KaolaOrderGetRequest extends KaolaRequest<KaolaOrderGetResult> {
	@NotBlank(message = "orderId 不能为空！")
    private String orderId = null;
	
	public KaolaOrderGetRequest() {
        super();
        methodName = Constants.METHOD_KAOLA_ORDER_GET;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

	@Override
	public Map<String, Object> getAppParams() {
		Map<String, Object> appParams = new HashMap<String, Object>();
		appParams.put("order_id", orderId);
		return appParams;
	}
	
	@Override
    public Class<KaolaOrderGetResult> getResponseClass() {
        return KaolaOrderGetResult.class;
    }

}
